package com.itheima.service.umsService.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

import com.itheima.domain.db.ums.UmsMemberLevel;
import com.itheima.domain.db.ums.UmsMenu;
import com.itheima.mapper.umsMapper.UmsMemberLevelMapper;
import com.itheima.service.umsService.UmsMemberLevelService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author: Ren
 * @date 2022 - 11 - 12 - 14:57
 * @Description: com.itheima.service.impl.ums
 * @version:1.0
 */
@DubboService
public class UmsMemberLevelServiceImpl implements UmsMemberLevelService {

    @Autowired
    private UmsMemberLevelMapper umsMemberLevelMapper;

    @Override
    public List<UmsMemberLevel> findMemberLevel(Integer defaultStatus) {
        LambdaQueryWrapper<UmsMemberLevel> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(UmsMemberLevel::getDefaultStatus,defaultStatus);
        return umsMemberLevelMapper.selectList(queryWrapper);
    }
}